/**
 * @author liu_j@worksap.co.jp
 */
Ext.define('Goban.view.ControlPanel', {
	extend: 'Ext.form.Panel',
	alias: 'widget.controlPanel',
	width: 300,
	height: 400,
	layout: {
	    type: 'vbox',
	    align: 'center'
	},
	items: [{
		xtype: 'combo',
		itemId: 'blackPlayerCombo',
		store: 'Player',
		value: 0,
		editable: false,
		fieldLabel: '黒',
		displayField: 'name',
		valueField: 'value',
		queryMode: 'local'
	}, {
    	itemId: 'blackLevelField',
        xtype: 'numberfield',
        value: 3,
        minValue: 1,
        maxValue: 10,
        fieldLabel: '黒AI Level',
        hidden: true
    }, {
		xtype: 'combo',
		itemId: 'whitePlayerCombo',
		store: 'Player',
		value: 1,
		editable: false,
		fieldLabel: '白',
		displayField: 'name',
		valueField: 'value',
		queryMode: 'local'
	}, {
    	itemId: 'whiteLevelField',
        xtype: 'numberfield',
        value: 3,
        minValue: 1,
        maxValue: 10,
        fieldLabel: '白AI Level',
        hidden: false
    }, {
		xtype: 'button',
		text: '開始',
		itemId: 'start'
	}, {
		xtype: 'displayfield',
		itemId: 'blackAverageTimeField',
		fieldLabel: '黒平均時間'
	}, {
		xtype: 'displayfield',
		itemId: 'whiteAverageTimeField',
		fieldLabel: '白平均時間'
	}, {
		xtype: 'label',
		text: '黒'
	}, {
		xtype: 'analysisGird',
		itemId: 'blackAnalysisGrid',
		width: 280,
		height: 90
	}, {
		xtype: 'label',
		text: '白'
	}, {
		xtype: 'analysisGird',
		itemId: 'whiteAnalysisGrid',
		width: 280,
		height: 90
	}]
});